using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class sport_menuMap : EntityTypeConfiguration<sport_menu>
    {
        public sport_menuMap()
        {
            // Primary Key
            this.HasKey(t => t.sport_menu_id);

            // Properties
            // Table & Column Mappings
            this.ToTable("sport_menu");
            this.Property(t => t.sport_menu_id).HasColumnName("sport_menu_id");
            this.Property(t => t.sport_id).HasColumnName("sport_id");
            this.Property(t => t.sport_minutes).HasColumnName("sport_minutes");
            this.Property(t => t.sport_frequence).HasColumnName("sport_frequence");
            this.Property(t => t.sport_consumetotalheat).HasColumnName("sport_consumetotalheat");
        }
    }
}
